define hierarchy ymoon_i_formmenu
  with parameters p_form : abap.char(10)
  as parent child hierarchy (
    source ymoon_i_menu
    child to parent association _Parent
    directory _Form filter by 
    FormId = $parameters.p_form
    start where ParentMenu is initial
    siblings order by MenuSeq ascending
  )
{
    key FormId,
    key MenuId,
    ParentMenu,
    MenuSeq
    
}
